/*
 * Singularity Engine
 * Copyright (C) 2010 Vyacheslav Vorobyov, All rights reserved.
 * See LICENSE for full license information.
 */
package org.singularity.lang.model;

/**
 * @author vjache
 *
 */
public class Constant implements Evaluatable {

	private final Object _value;
	/**
	 * 
	 */
	public Constant(Object aValue) 
	{_value = aValue;}

	/* (non-Javadoc)
	 * @see org.singularity.lang.model.Evaluatable#evaluate()
	 */
	@Override
	public Evaluatable evaluate() 
	{return this;}

	/**
	 * @return the value
	 */
	public Object getValue() 
	{return _value;}
	
	@Override
	public String toString() {
		return String.valueOf(_value);
	}

}
